//
//  WKSwitch.h
//  WKMaybell
//
//  Created by 何文虎 on 2018/12/18.
//  Copyright © 2018 何文虎. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, WKSwitchStyle) {
    WKSwitchStyleNoBorder,
    WKSwitchStyleBorder
};

@interface WKSwitch : UIControl


@property (nonatomic, assign, getter = isOn) BOOL on;

@property (nonatomic, assign) WKSwitchStyle style;

@property (nonatomic, strong) UIColor *onTintColor;
@property (nonatomic, strong) UIColor *tintColor;
@property (nonatomic, strong) UIColor *thumbTintColor;

@property (nonatomic, strong) UIColor *onTextColor;
@property (nonatomic, strong) UIColor *offTextColor;
@property (nonatomic, strong) UIFont *textFont;
@property (nonatomic, strong) NSString *onText;
@property (nonatomic, strong) NSString *offText;

- (void)setOn:(BOOL)on animated:(BOOL)animated;

@end

NS_ASSUME_NONNULL_END
